const fs = require('fs');
const path = require('path');

var filePath = path.join(__dirname, './2.txt');

fs.writeFile(filePath, 'I hope my wish will come true in the nearest future', (err) => {
    if (err) {
        console.log(err);
    }
})
console.log('同步执行代码');